<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Message extends Model
{
    protected $guarded = [];

    public function scopeUnread($q)
    {
        return $q->where('is_read', false);
    }
}
